home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / interc2.zip / INTERC.MSG < prev    next >
Text File  |  1991-10-09  |  3KB  |  69 lines

  1. This is a slightly modified version of the program intercep.c, described
  2. in the enclosed message.  The changes I made are:
  3.  
  4. 1.  I use DOS 2.0, under which Turbo C sets argv[0] to the empty string.  I
  5.     have made changes so that intercep sets progname="intercep" in this case.
  6.  
  7. 2.  I often run intercep on the root directory of my ramdisk, where "./file"
  8.     is not a valid synonym for "file".  Again, I fixed it so that this works.
  9.  
  10. 3.  I changed the file so that no warnings are emitted during compilation.
  11.  
  12. If anyone knows the original author, please send him this version or ask him
  13. to get in touch with me.
  14.  
  15. Original message header from comp.binaries.ibm.pc follows ...
  16.  
  17. --Paul Vojta, vojta@math.berkeley.edu
  18.  
  19.  
  20. From: nelson@sun.soe.clarkson.edu (Russ Nelson)
  21. Newsgroups: comp.binaries.ibm.pc
  22. Subject: v02i069: intercep, traces software interrupts
  23. Date: 15 Apr 89 22:18:17 GMT
  24. Summary: interc.arc, traces software interrupts
  25. Approved: dhesi@bsu-cs.bsu.edu
  26.  
  27. Posting-number: Volume 02, Issue 069
  28. Originally-from: Ned Konz <no email address> modified by Russ Nelson
  29. Submitted-by: Russ Nelson <nelson@sun.soe.clarkson.edu>
  30.  
  31. [
  32. This is a program to monitor software interrupts invoked by any
  33. program.  After you have invoked the program whose behavior you are
  34. tracing, and it has finished executing, a text file is left behind on
  35. disk that gives you a blow-by-blow account of all software interrupts
  36. that were invoked and what register values were passed, as well as a
  37. brief text description of what each one does.
  38.  
  39. For example, here is what lharc does when it adds a new file to a new
  40. archive:
  41.  
  42.  4FBF:000B  2130   Get DOS version number
  43.  4FBF:0159  2135   Get interrupt 00 vector
  44.  4FBF:016D  2125   Set interrupt 00 vector to 4FBF:014C
  45.  4FBF:00DE  214a   Change size of memory block at 4FAF:0000 to 157B paragraphs
  46.  4FBF:4229  2125   Set interrupt 23 vector to 4FBF:3854
  47.  4FBF:4174  213300 Get control break state
  48.  4FBF:4184  213301 Set control break to 01
  49.  4FBF:5651  2140   Write 0001 bytes from 552A:1222 to file #0002
  50.  ... stuff omitted ...
  51.  4FBF:5651  2140   Write 0001 bytes from 552A:1222 to file #0002
  52.  4FBF:5651  2140   Write 0001 bytes from 552A:FF76 to file #0002
  53.  4FBF:2AFF  213700 Get switch character
  54.  4FBF:478E  213d   Open file (name at 552A:1721) mode 02
  55.  4FBF:3A4F  211a   Set DTA to 552A:FEF6
  56.  4FBF:3A59  214e   Begin file search (name at 552A:FF2E) for files with attr. 00
  57.  4FBF:372E  2148   Allocate 0100 paragraphs of memory
  58.  ... lots omitted ...
  59.  
  60. All software interrupts to be traced are listed in an external data
  61. file.  You can modify this list easily with a text editor.  Russ Nelson
  62. has revised the program so you can easily specify which software
  63. interrupts it should trace without recompiling it.
  64.  
  65. The program seems to work well.
  66.  
  67. -- R.D.
  68. ]
  69.